package com.qincji.webviewbrowser;

import com.qincji.webviewbrowser.slice.MainAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class MainAbility extends Ability {

    public final static String TITLE = "title";
    public final static String URL = "url";
    public final static String ACTIVE_TITLE = "active_title";//随着页面而改变标题

    @Override
    public void onStart(Intent intent) {
        //test
        intent.setParam(TITLE, "测试");
        intent.setParam(URL, "https://www.baidu.com");
        intent.setParam(ACTIVE_TITLE, true);

        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());
    }
}